using System;
using System.Collections.Generic;
using UnityEngine;

namespace GameCore
{
    [Serializable]
    public class LevelLoader
    {
        public List<ContentPack> contentPacks = new();
        private readonly Dictionary<string, ContentPack> _packs = new();

        public void Init()
        {
            foreach (var pack in contentPacks)
            {
                _packs.Add(pack.packName, pack);
                pack.Init();
            }
        }
    }
}